﻿@model IEnumerable<EAD_CA3.Models.FixtureData>

@{
    ViewBag.Title = "Home Fixtures for ";
}

<h2>@ViewBag.Title @ViewBag.Team</h2>

<table>
    <tr>
        <th>
            Home Team
        </th>
        <th>
            Away Team
        </th>
        <th>
            Division
        </th>
        <th>
            Fixture Date
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Home_Team)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Away_Team)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Division)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fixture_Date)
        </td>
    </tr>
}
</table>
<p>
    @Html.ActionLink("Return to Filter", "Filter")
</p>